package com.basics.channel.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.basics.api.response.organization.GroupOrganizationMemberListData;
import com.basics.api.response.organization.OrganizationMemberListData;
import com.basics.channel.entity.CyChannelGroupUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 频道用户绑定表 Mapper 接口
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyChannelGroupUserMapper extends BaseMapper<CyChannelGroupUser> {

    IPage<GroupOrganizationMemberListData> selectChannelGroupMemberList(Page page, @Param("channelId")Long channelId, @Param("searchText")String searchText);

    IPage<OrganizationMemberListData> selectMemberListByGroupId(Page page, @Param("groupId")String groupId);
}
